home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 11 / 0 / DISK1105.ZIP / HELP / #EDIT8.4 < prev    next >
Text File  |  1988-06-01  |  4KB  |  114 lines

  1.  
  2.            ══════════════════════════════════════════════════════════════
  3.                         2. DIET-BLEND PROBLEM (PLAN: 1902)
  4.            ══════════════════════════════════════════════════════════════
  5.  
  6.                                          A.B.C.   Animal  Feed   Company 
  7.                                          Markets  a product  produced  by
  8.                                          mixing three(3) materials(grains)
  9.  
  10.  
  11.              This  relatively  simple BLEND problem can be  expressed  as 
  12.              follows:
  13.  
  14.                     #1  =barley       #2  =corn         #3  =oats
  15.                     #4  =rice         #5  =meat byprod  #6  =bones
  16.  
  17.                     Components:
  18.  
  19.                         B1(#101) will be at least 30 pounds per 100 lbs. 
  20.                         B2(#102) not more than 40 pounds per 100 lbs.
  21.                         B3(#103) not more than 35 pounds per 100 lbs.
  22.  
  23.  
  24. ...more information on next view
  25.  
  26.  
  27.              The  equations to satisfy all the components (B1,B2,B3)  can 
  28.              be shown as: (using the TABLE)
  29.  
  30.  
  31.              component  B1:  <GE>     0.2*(#1) + 0.45*(#2) +  0.1*(#3)  + 
  32.                                       0.6*(#4) + 0.5*(#5)  +  0.3*(#6) 
  33.  
  34.              component  B2:  <LE>     0.5*(#1) + 0.25*(#2) +  0.2*(#3)  + 
  35.                                       0.2*(#4) + 0.1*(#5)  +  0.2*(#6)
  36.  
  37.              component  B3:  <LE>      0.3*(#1) + 0.3*(#2) +  0.7*(#3)  + 
  38.                                        0.2*(#4) + 0.4*(#5) +  0.5*(#6)
  39.  
  40.              The  total product weight for with these components will  be 
  41.              100 pounds, therefore:
  42.  
  43.              total weight:  (#1) + (#2) + (#3) + (#4) + (#5) + (#6)
  44.                             =100.
  45.  
  46. ...more information on next view
  47.  
  48.              Similar  to  demonstration  problem  no.   1  the  OBJECTIVE 
  49.              FUNCTION " max: profit" will be automatically established by 
  50.              using the COSTS data statements. 
  51.  
  52.                 '**********************************************************
  53.                 '
  54.                 '               A.B.C. Animal Feed Company
  55.                 '
  56.                 '**********************************************************
  57.                 '                material  cost
  58.                 '..........................................................
  59.  
  60.                         COSTS
  61.                         #1=0.10/barley,   #2=0.18/corn,   #3=0.06/oats
  62.                         #4=0.14/rice,     #5=0.22/meat byprods.
  63.                         #6=0.18/bones;
  64.  
  65.  
  66.  
  67.  
  68. ...more information on next view
  69.  
  70.  
  71.                 '..........................................................
  72.                 ' the BLENDING EQUATIONS can be expressed as
  73.                 '..........................................................
  74.  
  75.                         EQUATIONS
  76.         com.b1     0.2*#1 + 0.45*#2 + 0.1*#3 + 0.6*#4 + 0.5*#5 + 0.3*#6
  77.                    <GE>  #101/component B1;
  78.  
  79.         com.b2     0.5*#1 + 0.25*#2 + 0.2*#3 + 0.2*#4 + 0.1*#5 + 0.2*#6
  80.                    <LE>  #102/component B2;
  81.  
  82.         com.b3     0.3*#1 + 0.3*#2 + 0.7*#3 + 0.2*#4 + 0.4*#5 + 0.5*#6
  83.                    <LE>  #103/component B3;
  84.                 '..........................................................
  85.                 ' the final product will be 100 pounds
  86.                 '..........................................................
  87.                 totalw      #1 + #2 + #3 + #4 + #5 + #6  <EQ> 100.;
  88.  
  89.  
  90. ...more information on next view
  91.  
  92.  
  93.                 '..........................................................
  94.                 '    the meat byproducts and bones are further limited
  95.                 '..........................................................
  96.  
  97.                 MAXIMUM #5=10.          '..meat by products
  98.                         #6=12.;         '..bones (chicken)
  99.  
  100.                 '..........................................................
  101.  
  102.                 SET     #101=30.        '..component B1
  103.                         #102=40.        '..component B2
  104.                         #103=35.;       '..component B3
  105.  
  106.                 '..........................................................
  107.  
  108.  
  109.  
  110.  
  111.  
  112. ...try other screens
  113.  
  114.